﻿@model ProjectManagement.Models._Task
<fieldset style="width: 700px;">
    <legend id="legendTitle">新建任务</legend>
    <table class="noline">
        <tr>
            <td>@Html.LabelFor(x => x.Name)
            </td>
            <td>
                @Html.TextBoxFor(x => x.Name, new { style = "width:165px;" })
                @Html.ValidationMessageFor(x => x.Name)
            </td>
            <td>
                @Html.LabelFor(x => x.ProjectID)
            </td>
            <td>
                @Html.DropDownListFor(x => x.ProjectID, Model.GetProjectSelectListItems(), "请选择......", new { style = "width:165px;", onchange = "pubProjectID(this.value)" })
                @Html.ValidationMessageFor(x => x.ProjectID)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x => x.StartDate)
            </td>
            <td>
                @Html.Telerik().DatePickerFor(model => model.StartDate).HtmlAttributes(new { style = "width: 185px" })<br />
                @Html.ValidationMessageFor(x => x.StartDate)
            </td>
            <td>@Html.LabelFor(x => x.Sequence)
            </td>
            <td>
                @Html.Telerik().IntegerTextBoxFor(model => model.Sequence).InputHtmlAttributes(new { style = "width: 165px" })
                @Html.ValidationMessageFor(x => x.Sequence)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x => x.EndDate)
            </td>
            <td>
                @Html.Telerik().DatePickerFor(model => model.EndDate).HtmlAttributes(new { style = "width: 185px" })<br />
                @Html.ValidationMessageFor(x => x.EndDate)
            </td>
            <td>@Html.LabelFor(x => x.Owners)
            </td>
            <td>
                @Html.TextBoxFor(x => x.Owners, new { style = "width:165px;" })<span class="oname">@Model.Owners</span>
                <a href="javascript:;" onclick="getmembers()">获取成员</a>
                @Html.ValidationMessageFor(x => x.Owners)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x => x.Content)
            </td>
            <td colspan="3">
                @Html.TextAreaFor(x => x.Content, new { rows = "4", cols = "62" })
                @Html.ValidationMessageFor(x => x.Content)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x => x.KMLinks)
            </td>
            <td colspan="3">
                @Html.TextAreaFor(x => x.KMLinks, new { rows = "4", cols = "62" })
                @Html.ValidationMessageFor(x => x.KMLinks)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x => x.Deliverables)
            </td>
            <td colspan="3">
                @Html.TextAreaFor(x => x.Deliverables, new { rows = "4", cols = "62" })<br />
                @Html.ValidationMessageFor(x => x.Deliverables)
            </td>
        </tr>
    </table>
</fieldset>
@*<fieldset id="comment" style="width: 700px;">
    <legend>任务留言</legend>
    <table class="noline">
        <tr>
            <td style="width: 14%;">
                <label>
                    内容</label>
            </td>
            <td>
                <textarea id="Contents" name="Contents" rows="4" cols="62"></textarea>*@
@Html.HiddenFor(x => x.ID)
@* </td>
        </tr>
    </table>
    <div id="commentList" class="dierye_3" style="overflow-y: scroll; height: 216px;
        font-size: 0.8em;">
    </div>
</fieldset>*@
@(Html.Telerik().Window()
    .Name("GetMembers")
    .Content(@<text>
<div class="dialogue-GetMembers">
    <div class="GetMembers-wrapper">
    </div>
</div></text>)
    .Width(500)
    .Height(250).Title("获取成员")
    .Modal(true).Visible(false).Draggable(true)
)
<style>
    .noline
    {
        width: 100%;
    }
    .noline, .noline tr, .noline td
    {
        border: 0;
        padding: 2px;
    }
</style>
